package com.springcloud.configclient.payment8004.controller;

import com.springcloud.configclient.payment8004.service.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @Autowired
    private Payment payment;

    @GetMapping(value = "/payment/zk")
    public String paymentzk(){
        return payment.getpaymentzk();
    }

}
